﻿<%@ MasterType VirtualPath="~/SiteNavigation.master" %>
<%@ page title="" language="C#" masterpagefile="~/SiteNavigation.master" autoeventwireup="true" inherits="Select_Select1, App_Web_jp12tzh2" maintainscrollpositiononpostback="true" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
    <div style="width: 1111px">
        <asp:Label ID="StudentUINLabel" runat="server" Text="UIN: "></asp:Label>
&nbsp;&nbsp;
        <asp:TextBox ID="StudentUINTextBox" runat="server" Height="21px" 
            style="margin-left: 58px" Width="121px"></asp:TextBox>
&nbsp;&nbsp;&nbsp;
        <br />
        <asp:Label ID="StudentFNLabel" runat="server" Text="First Name: "></asp:Label>
&nbsp;&nbsp;
        <asp:TextBox ID="StudentFirstNameTextBox" runat="server" TabIndex="1"></asp:TextBox>
&nbsp;
        <asp:Label ID="StudentLastNameLabel" runat="server" Text="Last Name: "></asp:Label>
        <asp:TextBox ID="StudentLastNameTextBox" runat="server" TabIndex="2"></asp:TextBox>
&nbsp;
        <asp:Label ID="StudentEmailLabel" runat="server" Text="Email: "></asp:Label>
        <asp:TextBox ID="StudentEmailTextBox" runat="server" TabIndex="3"></asp:TextBox>
        <br />
        <asp:Label ID="StudentAddress1Label" runat="server" Text="Address 1: "></asp:Label>
        <asp:TextBox ID="StudentAdd1TextBox" runat="server" TabIndex="4" Width="184px"></asp:TextBox>
&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label ID="StudentAdd2Label" runat="server" Text="Address 2: "></asp:Label>
        <asp:TextBox ID="StudentAdd2TextBox" runat="server" TabIndex="5" Width="169px"></asp:TextBox>
&nbsp;<br />
        <asp:Label ID="StudentCityLabel" runat="server" Text="City: "></asp:Label>
        <asp:TextBox ID="StudentCityTextBox" runat="server" TabIndex="6"></asp:TextBox>
&nbsp;
        <asp:Label ID="StudentStateLabel" runat="server" Text="State: "></asp:Label>
&nbsp;<asp:TextBox ID="StudentStateTextBox" runat="server" TabIndex="7"></asp:TextBox>
&nbsp;
        <asp:Label ID="StudentCountryLabel" runat="server" Text="Country: "></asp:Label>
        <asp:TextBox ID="StudentCountryTextBox" runat="server" TabIndex="8"></asp:TextBox>
        <br />
        <asp:Button ID="StudentSearchButton" runat="server" Text="Search" 
            Width="93px" onclick="StudentSearchButton_Click" />
&nbsp;
        <asp:Button ID="StudentUpdateButton" runat="server" Text="Update" 
            Width="89px" onclick="StudentUpdateButton_Click" />
&nbsp;
        <asp:Button ID="StudentCreateButton" runat="server" 
            onclick="StudentCreateButton_Click" Text="Create" Width="78px" />
&nbsp;
        <asp:Button ID="StudentDeleteButton" runat="server" Text="Delete" 
            Width="92px" onclick="StudentDeleteButton_Click" />
        <br />
        <hr />
        <br />
    </div>
    <div>
        <asp:GridView ID="StudentInfoGridView" runat="server" 
            EnableModelValidation="True" AutoGenerateColumns="False"
            DataKeyNames="AutoId" ShowFooter="True" 
            onrowcancelingedit="GridViewStudentInfo_RowCancelingEdit" 
            onrowcommand="StudentInfoGridView_RowCommand" 
            onrowdeleting="GridViewStudentInfo_RowDeleting" 
            onrowediting="GridViewStudentInfo_RowEditing" 
            onrowupdating="GridViewStudentInfo_RowUpdating">
            <Columns>
                <asp:CommandField ShowSelectButton="True" />
                <asp:TemplateField HeaderText="Edit">
                    <EditItemTemplate>
                        <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="True" 
                            CommandName="Update" Text="Update"></asp:LinkButton>
                        &nbsp;<asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" 
                            CommandName="Cancel" Text="Cancel"></asp:LinkButton>
                    </EditItemTemplate>
                    <FooterTemplate>
                        <asp:LinkButton ID="StudentGridAddNewLinkButton" runat="server" 
                            CommandName="AddNew">AddNew</asp:LinkButton>
                    </FooterTemplate>
                    <ItemTemplate>
                        <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" 
                            CommandName="Edit" Text="Edit"></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="UIN" SortExpression="UIN">
                    <EditItemTemplate>
                        <asp:Label ID="StudentUINGridLabelEdit" runat="server" 
                            Text='<%# Eval("UIN") %>'></asp:Label>
                    </EditItemTemplate>
                    <FooterTemplate>
                        <asp:TextBox ID="StudentUINGridFooterTxtBox" runat="server"></asp:TextBox>
                    </FooterTemplate>
                    <ItemTemplate>
                        <asp:Label ID="StudentUINGridLable" runat="server" Text='<%# Bind("UIN") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="First Name" SortExpression="FirstName">
                    <EditItemTemplate>
                        <asp:TextBox ID="StudentFNGridTxtBox" runat="server" 
                            Text='<%# Bind("FirstName") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <FooterTemplate>
                        <asp:TextBox ID="StudentFNNewGridTxtBox" runat="server"></asp:TextBox>
                    </FooterTemplate>
                    <ItemTemplate>
                        <asp:Label ID="StudentFNGridLabel" runat="server" 
                            Text='<%# Bind("FirstName") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Last Name" SortExpression="LastName">
                    <EditItemTemplate>
                        <asp:TextBox ID="StudentLNGridTxtBox" runat="server" 
                            Text='<%# Bind("LastName") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <FooterTemplate>
                        <asp:TextBox ID="StudentLNNewGridTxtBox" runat="server"></asp:TextBox>
                    </FooterTemplate>
                    <ItemTemplate>
                        <asp:Label ID="SudentLNGridLabel" runat="server" Text='<%# Bind("LastName") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Address 1" SortExpression="Address1">
                    <EditItemTemplate>
                        <asp:TextBox ID="StudentAdd1GridEditTxtBox" runat="server" 
                            Text='<%# Bind("Address1") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <FooterTemplate>
                        <asp:TextBox ID="StudentAdd1GridFooterTxtBox" runat="server"></asp:TextBox>
                    </FooterTemplate>
                    <ItemTemplate>
                        <asp:Label ID="StudentAdd1GridViewLabel" runat="server" 
                            Text='<%# Bind("Address1") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Address 2" SortExpression="Address2">
                    <EditItemTemplate>
                        <asp:TextBox ID="StudentAdd2GridEditTxtBx" runat="server" 
                            Text='<%# Bind("Address2") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <FooterTemplate>
                        <asp:TextBox ID="StudentAdd2GridFooterTxtBx" runat="server"></asp:TextBox>
                    </FooterTemplate>
                    <ItemTemplate>
                        <asp:Label ID="StudentAdd2GridViewLabel" runat="server" 
                            Text='<%# Bind("Address2") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="City" SortExpression="City">
                    <EditItemTemplate>
                        <asp:TextBox ID="StudentCityGridEditTxtBx" runat="server" 
                            Text='<%# Bind("City") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <FooterTemplate>
                        <asp:TextBox ID="StudentCityGridFooterTxtBx" runat="server"></asp:TextBox>
                    </FooterTemplate>
                    <ItemTemplate>
                        <asp:Label ID="StudentCityGridViewLabel" runat="server" 
                            Text='<%# Bind("City") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="State" SortExpression="State">
                    <EditItemTemplate>
                        <asp:TextBox ID="StudentStateGridEditTxtBx" runat="server" 
                            Text='<%# Bind("State") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <FooterTemplate>
                        <asp:TextBox ID="StudentStateGridFooterTxtBx" runat="server"></asp:TextBox>
                    </FooterTemplate>
                    <ItemTemplate>
                        <asp:Label ID="StudentStateGridViewLabel" runat="server" 
                            Text='<%# Bind("State") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Country" SortExpression="Country">
                    <EditItemTemplate>
                        <asp:TextBox ID="StudentCountryGridEditTxtBx" runat="server" 
                            Text='<%# Bind("Country") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <FooterTemplate>
                        <asp:TextBox ID="StudentCountryGridFooterTxtBx" runat="server"></asp:TextBox>
                    </FooterTemplate>
                    <ItemTemplate>
                        <asp:Label ID="StudentCountryGridViewLabel" runat="server" 
                            Text='<%# Bind("Country") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Zip" SortExpression="Zip">
                    <EditItemTemplate>
                        <asp:TextBox ID="StudentZipGridEditTxtBx" runat="server" 
                            Text='<%# Bind("Zip") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <FooterTemplate>
                        <asp:TextBox ID="StudentZipGridFooterTxtBx" runat="server"></asp:TextBox>
                    </FooterTemplate>
                    <ItemTemplate>
                        <asp:Label ID="StudentZipGridViewLabel" runat="server" 
                            Text='<%# Bind("Zip") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Email" SortExpression="Email">
                    <EditItemTemplate>
                        <asp:TextBox ID="StudentEmailGridEditTxtBx" runat="server" 
                            Text='<%# Bind("Email") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <FooterTemplate>
                        <asp:TextBox ID="StudentEmailGridFooterTxtBx" runat="server"></asp:TextBox>
                    </FooterTemplate>
                    <ItemTemplate>
                        <asp:Label ID="StudentEmailGridViewLabel" runat="server" 
                            Text='<%# Bind("Email") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Phone" SortExpression="Phone">
                    <EditItemTemplate>
                        <asp:TextBox ID="StudentPhoneGridEditTextBx" runat="server" 
                            Text='<%# Bind("Phone") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <FooterTemplate>
                        <asp:TextBox ID="StudentPhoneGridFooterTxtBx" runat="server"></asp:TextBox>
                    </FooterTemplate>
                    <ItemTemplate>
                        <asp:Label ID="StudentPhoneGridViewLabel" runat="server" 
                            Text='<%# Bind("Phone") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Delete">
                    <ItemTemplate>
                        <span onclick="return confirm('Are you sure to Delete the record? It will also delete all the assigned course registration')" >
                            <asp:LinkButton ID="DeleteLinkButton" runat="server" CausesValidation="False" 
                            CommandName="Delete" Text="Delete"></asp:LinkButton>
                        </span>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </div>
</asp:Content>

